module.exports = {
  success(data, message = '操作成功！') {
    return { code: 0, data, message };
  },
  fail(message, data) {
    return { code: -1, data, message };
  },
};
